#include "junix.h"

int
main(int argc, char **argv)
{
	char* p=NULL;
	int n=0;
	ssize_t sz;

	if( (sz=getline(&p, &n, stdin)) > 0)
	{
		int len = strlen(p);
		printf("strlen:%d\n",len);
		assert( p[len-1] == '\n');
		p[len-1] = '\0';

		fprintf(stdout,"%s",p);
	}
	return 0;
}

